package com.jf.mocker

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.jf.mocker.mock.MyKtMocker

class HomeActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)
        val test = MyTestClass()
        val txvTest = findViewById<TextView>(R.id.txv_test)
        txvTest.setOnClickListener {
            test.message = "set message to new"
            test.sendMessage()
        }

        findViewById<TextView>(R.id.txv_test_2).setOnClickListener {
            MyKtTestClass().sayHello()
        }
    }
}